import {Injectable, Pipe, PipeTransform} from '@angular/core';

@Pipe({
    name: 'filter'
})
@Injectable()
export class BussinessFilter implements PipeTransform {
    transform(items: any[], args: any[]): any {
        return items.filter(item => args.indexOf(item.value) !== -1);
    }
}